package com.kygeng.springframework.context.event;

import com.kygeng.springframework.context.ApplicationContext;
import com.kygeng.springframework.context.ApplicationEvent;

/**
 * @Title: ApplicationContextEvent
 * @Author: kygeng
 * @Package: com.kygeng.springframework.context.event
 * @Date: 2024/8/3 16:10
 * @Description: 事件上下文
 */
public class ApplicationContextEvent extends ApplicationEvent {

    public ApplicationContextEvent(Object source) {
        super(source);
    }

    public final ApplicationContext getApplicationContext() {
        return (ApplicationContext) getSource();
    }
}
